package com.ruoyi.project.tickets.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 销售详情对象 t_sale_details
 *
 * @author 孙山伟
 * @date 2023-07-01
 */
public class SaleDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long saleNumber;

    /** 规则id */
    @Excel(name = "规则id")
    private Long ruleId;

    /** 销售id */
    @Excel(name = "销售id")
    private Long saleId;

    /** 主键 */
    private Long id;

    private BigDecimal saleAmount;

    public void setSaleNumber(Long saleNumber)
    {
        this.saleNumber = saleNumber;
    }

    public Long getSaleNumber()
    {
        return saleNumber;
    }
    public void setRuleId(Long ruleId)
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId()
    {
        return ruleId;
    }
    public void setSaleId(Long saleId)
    {
        this.saleId = saleId;
    }

    public Long getSaleId()
    {
        return saleId;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("saleNumber", getSaleNumber())
            .append("ruleId", getRuleId())
            .append("saleId", getSaleId())
            .append("id", getId())
            .toString();
    }

    public BigDecimal getSaleAmount() {
        return saleAmount;
    }

    public void setSaleAmount(BigDecimal saleAmount) {
        this.saleAmount = saleAmount;
    }
}
